<%@page import="ie.deloitte.cvapp.domain.EmployeeHasSkill"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
    <head>
    </head>
    <body>
    <h1>List of all Employee's Skills</h1>
	<p>Edit by clicking on Employee ID</p>
	<br>
	<a href="list">List</a>
	
	<br>
	<table border="1">
		<thead>
		<tr>
			<th>Employee ID</th>
			<th>Creation Date</th>
			<th>First Name</th>
			<th>Email</th>
			<th>Skills</th>

		</tr>
		</thead>
		<tbody>
			
				<tr>
					<td>${employee.idEmployee}</td>
					<td>${employee.creationdate}</td>
					<td>${employee.name}</td>
					<td>${employee.email}</td>
					<td>
						<ul>
							<c:forEach var="ehs" items="${employee.skills}">
								<li>${ehs.level} grade of ${ehs.skill.name}</li>
							</c:forEach>
						</ul>
					</td>	
				</tr>
		</tbody>
	</table>
    </body>
</html>
